POV-Ray : Newsgroups : povray.newusers : Laser Light Source with Photons... : Laser Light Source with Photons... Server Time
7 May 2024 00:56:39 EDT (-0400)
  Laser Light Source with Photons...  
From: Frozenport com
Date: 13 Jul 2008 00:55:00
Message: <web.487989b0797036a91a8107a20@news.povray.org>
Hello,

I am trying to create a cylindrical light source that will project something
visual similar to a laser. This light beam should then go rough some optical
component such as a prisim and then split into the appropriate patern.

My problems is that I can not get the path of the light to either be visible or
to interact with the optical component.

Here is the code I have to make a laser beam going straight down. How do I make
the beam visible and interact with optical components?

#include "colors.inc"
#include "textures.inc"
#include "woods.inc"
#declare Use_Photons = yes;
plane { y, 0 texture{Chrome_Metal}}

global_settings {
max_trace_level 10
photons {
count 1000000
autostop 0
media 1000
//jitter .4
max_trace_level 10
}
}

light_source {<0,20,0> color White*.2 photons {reflection off}}
camera { location <2,10,7> look_at <0,0,0>}

box {<10,10,10>, 0 pigment{ color Clear } photons{target on}}

// Right Barrier
box { <1,3,-10>, 0 texture{T_Wood14} translate <-6,0,4>}
// The  Slab
box { <2,1,-10>, 0  translate <1,0,4> interior{ior 1.5 }
finish{ ior 1.5 ambient 1 diffuse 1 reflection .9  }
//now for the photons
photons { target refraction on reflection on pass_through on}
 }
//The LaserBox
box { <4,1,-2>, 0 texture{Candy_Cane} translate <5,0,0>}
//The LaserTip
cylinder {<0,0,0>,<0,5,0>,.1 texture{Chrome_Metal} translate <.75,-9.5,-1.25>
rotate<0,0,90>}
//The Photon Shooter
light_source {<0,5,0>  color Red cylinder  point_at <0,0,0> photons{reflection
on refraction on}}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.